package com.xy.ddd.core.annotations;

import java.lang.annotation.*;

/**
 * 业务域字段
 * <p>
 *     使用该注解的字段，需搭配实现{@link com.xy.ddd.core.model.DomainModel}
 * </p>
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface DomainField {
    String code();

    String fieldName() default "id";
}
